$(function () {
    var s_title = $(".select_box span");
    var s_select = $(".select_box li");
    s_title.click(function (e) {
        $(this).addClass("span_aa");
        $(this).next("ul").show();
        $(this).prev("a").css("transform","rotate(-90deg)");

        e.stopPropagation();
    });
    s_select.click(function () {
        var s_text = $(this).html();
        setTipsText(s_text) ;
        var s_title_2 = $(this).parent('ul').prev("span");
        s_title_2.html(s_text).removeClass("span_aa");
        s_title_2.prev("a").css("transform","rotate(90deg)");
        $(this).parent('ul').hide();
    });
    $(document).click(function () {
        s_title.removeClass("span_aa");
        $(".select_box ul").hide();
    });
});
/*
 * @description : 在选择公司和地址时，改变提示框内容
 * @author : peng huaneng
 * @date : 2018/3/13 11:27
 */
function setTipsText(text) {
    $("#company_name_div").html(text);
}
